 
<div id="maincontent">
	<div id="maincontent_inner">
		<div id="sidebar">
			<div class="menu single">
				<ul>
					<li><a href="#">车辆基础信息库管理</a>
						<ul>
							<li><a href="<?php echo site_url("c=car_info&m=index"); ?>">车辆信息管理</a></li>
							<li><a href="<?php echo site_url("c=car_brand&m=index"); ?>">车辆品牌管理</a></li>
							<li class="current"><a href="<?php echo site_url("c=car_series&m=index"); ?>">车辆系列管理</a></li>
							<li><a href="<?php echo site_url("c=car_type&m=index"); ?>">车辆类型管理</a></li>
							<li><a href="<?php echo site_url("c=car_structure&m=index"); ?>">车辆结构管理</a></li>
						</ul>
					</li>
				</ul>
			</div>
		</div>
		<div id="content">
			<div class="title">车辆系列管理</div>
			<div class="infoarea">
			<form name="titleSearchForm" action="<?php echo site_url("c=car_series&m=index"); ?>" method="post">
				<div class="box">车辆系列名称：<input type="text" size="16" name="seriesname" value="<?php echo $params['seriesname'];?>"/> 
				品牌：<select name="brandid"> 
							<option value="0"  >-----选择-----</option>

				 <?php 
				if($brandlist)
				{
					foreach($brandlist as $brand){ 
						if($params['brandid']==$brand['brandid'])
						{
						?>
						<option selected value="<?php echo $brand['brandid']; ?>"><?php echo $brand['brandname']; ?></option>
						 <?php }else{ ?>
						 <option value="<?php echo $brand['brandid']; ?>"><?php echo $brand['brandname']; ?></option>
						<?php 
						}
					}
				}
				 ?>
					</select>	

					类型：
					<select name="typeid"> 
						<option value="0">-----选择-----</option>
						 <?php 
				if($typelist)
				{
					foreach($typelist as $type){
						if($params['typeid']==$type['typeid'])
						{
						?>
						<option selected value="<?php echo $type['typeid']; ?>"><?php echo $type['typename']; ?></option>
						 <?php }else{ ?>
						 <option value="<?php echo $type['typeid']; ?>"><?php echo $type['typename']; ?></option>
						<?php 
						}
					}
				}
				 ?>
					</select>	
				<input type="submit" class="btn" value="查询"/>
				<div style="float:right"><input type="button" class="btn" value="添加车辆系列" onclick="gotoPage('<?php echo site_url("c=car_series&m=add"); ?>');" /></div>
			</form>
				</div>
				<table border="0" cellspacing="0" cellpadding="0" width="100%" class="stylized">
					<tr>
						<th>系列名称</th>
						<th>所属品牌</th>
						<th>所属类型</th>
						<th>操作</th>
					</tr>
					 <?php 
					if($count)
					{
					foreach($list as $series){ ?>
					<tr>
						<td><?php echo $series['seriesname']; ?></td>
						<td><?php echo $series['brandname']; ?></td>
						<td><?php echo $series['typename']; ?></td>
						 
						<td>  <a href="<?php echo site_url("c=car_series&m=edit&seriesid=$series[seriesid]"); ?>">编辑</a> | <a href="<?php echo site_url("c=car_series&m=delete&seriesid=$series[seriesid]"); ?>" onclick="return confirm('确认要删除当前记录吗？')">删除</a></td>
					</tr>
					 <?php }
					}
					else
					{?>

					<tr>
						<td colspan="2"> 无记录 </td>
					</tr>
					 <?php  
					}
					 ?>
 
					 
				</table>
				<div id="pager" class="pagebar">
					 <?php  
					 echo $pagelink;
					 ?>
					
				</div>
			</div>
		</div>
	</div>
</div>
 